@echo off
echo 正在测试远程仓库连接...

REM 查找Git
if exist "C:\Program Files\Git\bin\git.exe" (
    set GIT_CMD="C:\Program Files\Git\bin\git.exe"
    goto found
)
if exist "C:\Program Files\Git\cmd\git.exe" (
    set GIT_CMD="C:\Program Files\Git\cmd\git.exe"
    goto found
)
echo 未找到Git安装
pause
exit /b 1

:found
echo 找到Git: %GIT_CMD%
cd /d "C:\Users\Administrator\Documents\trae_projects\lt00001\magazine"

echo.
echo 检查远程仓库配置...
%GIT_CMD% remote -v

echo.
echo 测试远程连接...
%GIT_CMD% ls-remote --heads origin

echo.
echo 检查分支...
%GIT_CMD% branch -a
pause